BITSET
The BITSET
field specifier (case sensitive) allows you find documents with a
NOTE: You can only use the BITSET
field specifier for
Format
FieldText=BITSET{yourBitSets}:yourBitFields
yourBitSets
|
Type one or more set numbers, separated by commas. These set numbers must be in normal decimal form. |
yourBitFields
|
Type one or more yourBitSets is set. Separate multiple fields with colons (: ). There must be no space before or after a colon. |
Example
FieldText=BITSET{0,4}:BitField
The binary representation of the hexadecimal value contained in BitField
must have the bit set (the binary digit is 1) for set 0 or set 4.
For example, if a document has a BitField
containing the hexadecimal value A4, it does not match the query. The binary representation is 10100100
, where the bits for set 0 and 4 are both 0, so the document is not part of these sets.
If the document has a BitField
containing the hexadecimal value A8, it matches the query. The binary representation is 10101000, where the bit for set 4 is a 1, so the document is part of set 4.
FieldText=BITSET{2}:BitField AND BITSET{15}:BitField
The binary representation of the hexadecimal value contained in BitField
must have the bit set for both sets 2 and 15.
For example, if a document has a BitField
containing the hexadecimal value B110, it does not match the query. The binary representation is 1011000100010000, where the bit is set for set 15, but not for set 2.
If the document has a BitField
containing the hexadecimal value B114 it matches the query. The binary representation is 1011000100010100, where the bit is set for both set 15 and set 2.
See Also
-
BitFieldType configuration parameter